package com.aaa.service.sys;

import com.aaa.pojo.Dept;
import com.aaa.pojo.PageSort;
import com.aaa.pojo.Userinfo;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface UserService {

    //public List<Userinfo> findAllUser(String page, String limit);
    Page findAllUser(PageSort pageSort);

    List<Map<String, Object>> findAllUserInfoByName(Map map);

    boolean addUser(Userinfo userinfo);

    boolean deleteUserById(String[] userids);

    List<Dept> queryAllDept();

    boolean resetPassword(Userinfo userinfo);

    boolean updateUser(Userinfo userinfo);

    boolean findNoSameName(Userinfo userinfo);

    boolean updateOneself(Userinfo userinfo);






}
